﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace App.Views.ViewModels
{
    public class VehicleServiceEditViewModel
    {        
        [Required(ErrorMessage="*")]
        [DisplayName("用车编号")]
        public string UseVehicleNO{get;set;}

        [DisplayName("服务编号")]
        public string ServiceNo{get;set;}

        [DisplayName("死者编号")]
        public string DeadNO { get; set; }

        [Required(ErrorMessage = "*")]
        [DisplayName("司机")]
        public string EmployeeNO{get;set;}

        [Required(ErrorMessage="*")]
        [DisplayName("车辆")]
        public string VehicleNO {get;set;}

        [Required(ErrorMessage = "*")]
        [DisplayName("联系人")]
        public string ContactUnit{get;set;}

        [Required(ErrorMessage = "*")]
        [DisplayName("联系电话")]
        public string ContactPhone{get;set;}

        [Required(ErrorMessage = "*")]
        [DisplayName("预约时间")]
        public DateTime? PlanTime {get;set;}        

        [Required(ErrorMessage = "*")]
        [DisplayName("接车地点")]
        public string MeetAddress{get;set;}

        [DisplayName("送货地点")]
        public string SendAddress{get;set;}
        [DisplayName("用途")]
        public string Purpose{get;set;}
        [DisplayName("要求")]
        public string Requirements{get;set;}
        [DisplayName("备注")]
        public string Remark { get; set; }

        public decimal? Charges { get; set; } 
        public int? MileAge{get;set;} 
        public DateTime? ReturnTime{get;set;}
        public DateTime? DepartureTime { get; set; }
    }

    #region DriverStatusListViewModel
    public class DriverVehicleStatusViewModel {
        public string DriverNO { get; set; }
        public string DriverName { get; set; }
        public string VehicleNO { get; set; }
        public DateTime? StartTime{get;set;}
        public DateTime? EndTime { get;set; }
        public string Status { get; set; }
        public string Remark { get; set; }
    }
    #endregion
}